import { CharHandle, PickHandle } from "../type";

const judgePickHandle: PickHandle = {

	ruleType: "judge",

	canCount: true,

	isNode: true,

	// [canCount=false]
	onlyEnter: (save, origin, str, index, char, length) => {
	},

	enter: (origin, hasRange) => {
	},

	// [canCount=true]
	newExit: (enterBranch) => {
	},

	// [canCount=true]
	reenter: (enterBranch) => {
	},

	exit: (origin, hasRange) => {
	},

	// [isNode=true]
	noodHnalde: (save, origin, rule, str, index, char, length) => {
		const ruleData = rule.info.ruleData;
		return (<CharHandle>ruleData)(save, origin, rule, str, index, char, length);
	},

};


export default judgePickHandle;
